from django.http import JsonResponse

from django.core.files.storage import FileSystemStorage


def multiply_upload(request):
    if request.method == 'POST':
            # 获取上传的文件
            uploaded_file = request.FILES['file']
            # 可以在这里添加额外的处理逻辑
            # 保存文件到服务器
            fs = FileSystemStorage()
            filename = fs.save(uploaded_file.name, uploaded_file)

    return JsonResponse({'message': 'success'})
